package com.thoughtworks.videorental.domain;

import static junit.framework.Assert.*;

import org.junit.Test;

public class NewReleasePriceTest {
	private static final Price NEW_RELEASE_PRICE = new NewReleasePrice();

	@Test
	public void shouldCalculateCorrectChargeForOneDay() throws Exception
	{
		assertEquals(3.0, NEW_RELEASE_PRICE.getCharge(1));
	}
	
	@Test
	public void shouldCalculateCorrectChargeFor2Days() throws Exception
	{
		assertEquals(3.0, NEW_RELEASE_PRICE.getCharge(2));
	}
	
	@Test
	public void shouldCalculateCorrectChargeFor3Days() throws Exception
	{
		assertEquals(3.0, NEW_RELEASE_PRICE.getCharge(3));
	}
	
	@Test
	public void shouldCalculateCorrectChargeFor4Days() throws Exception
	{
		assertEquals(3.0, NEW_RELEASE_PRICE.getCharge(4));
	}
}
